#include <iostream>
#include <Windows.h>

using namespace std;
int main16_1demo()
{//三只小猪称体重
	SetConsoleOutputCP(65001);
	int pig1 = 0, pig2 = 0, pig3 = 0;
	cout << "请输入小猪A的体重:";
	cin >> pig1;
	cout << "请输入小猪B的体重:";
	cin >> pig2;
	cout << "请输入小猪C的体重:";
	cin >> pig3;
	cout << "小猪A的体重是：" << pig1 << endl;
	cout << "小猪B的体重是：" << pig2 << endl;
	cout << "小猪C的体重是：" << pig3 << endl;
	if (pig1 > pig2)
	{
		if (pig1 > pig3)
		{
			cout << "小猪A最重" << endl;
		}
		else
		{
			cout << "小猪C最重" << endl;
		}
	}
	else
	{
		if (pig2 > pig3)
		{
			cout << "小猪B最重" << endl;
		}
		else
		{
			cout << "小猪C最重" << endl;
		}
	}
	system("pause");
	return 0;
}
int main16_1()
{
	SetConsoleOutputCP(65001);
	//system("chcp 65001");
	//顶级 高级 中级 初级 狗屎
	int doller = 0;
	cout << "请输入你的年薪: ";
	cin >> doller;
	if (doller >= 100)
	{
		cout << "你是顶级程序员" << endl;
	}
	else if (doller >= 80)
	{
		cout << "你是高级程序员" << endl;
	}
	else if (doller >= 60)
	{
		cout << "你是中级程序员" << endl;
	}
	else if (doller >= 40)
	{
		cout << "你是初级程序员" << endl;
	}
	else
	{
		if (doller > 10)
		{
			cout << "你是狗屎" << endl;
		}
		else
		{
			cout << "你爱写点屎山代码" << endl;
		}
	}
	system("pause");
	return 0;
}